﻿@model Weibo.Web.Models.SchoolIndexModel
@{
    var border = "";
    if (Model.CurUserConfig.IsThemeDIY == 1)
    {
        ThemeDIY diy = Themes.GetThemeDIYByUID(Model.CurUser.ID);
        border = diy.BorderStyle + "Bg";
    }
    ViewData["curBorder"] = border;
    Group g = null;

    if (Model.gid != null)
    {
        g = Groups.GetGroupByID(Convert.ToInt64(Model.gid));
    }
    Education gg = null;
    IList<Education> allGroups = Model.EducationList;
    IList<Education> barGroups = null;
    IList<Education> popListGroups = null;
}
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@{
    ViewBag.Title = "111222我的首页 XX微博-随时随地分享身边的新鲜事儿";
}
@section  cssInsert{
    <link rel="stylesheet" type="text/css" href="/Content/CSS/miniblog/index.css" />
    <link rel="stylesheet" type="text/css" href="@Model.CurSkinCss" />
    <link rel="stylesheet" type="text/css" href="/Content/CSS/miniblog/layer.css" />
}
@section  jsInsert{
    <script type="text/javascript">
        curBorder = "@border";
    </script>
    <script src="../../Scripts/App.js" type="text/javascript"></script>
    <script src="../../Scripts/js/schoolIndex.js" type="text/javascript"></script>
    <script type="text/javascript">
      
        function photoClick(obj) {
          var gid=  $("#ulClassList li[class='current']").attr("gid");
          var url = "/@Model.uid/School/ClassPhoto?gid=" + gid; ;
            $(obj).attr("href", url);
        }
         
    </script>
}
@section  conSupplement{
    <div class="nfTaglay" style="z-index: 99; position: absolute; display: none;">
        <ul class="sltmenu_m">
            @{
                if (popListGroups != null)
                {
                    for (int i = 0; i < popListGroups.Count; i++)
                    {
                <li pop="1"  gid="@popListGroups[i].ID" class="txt"><a href="@("#!" + Utils.AddQueryToUrl(Request.Url.AbsolutePath, "gid", popListGroups[i].ID.ToString()))" title="@CommonMethod.DealSchoolName(popListGroups[i])">@popListGroups[i].SchoolClassName</a></li>
                    }
                }
            }
            @* <li class="MIB_linedot2"></li>*@ @*    <li><a id="Adjust_group_order" href="javaScript:void(0);">
                <img title="调整分组顺序" class="iconord" src="/Content/Image/transparent.gif">调整分组顺序111</a></li>*@
        </ul>
    </div>
    <script type="text/javascript">
        var btnMore = $(".moreti");
        var groupList = $(".nfTaglay");
        var groupItem = $(".sltmenu");
        var btnMagGroup = $("#btnManageGroup");
        if (groupItem[0] != null && btnMagGroup[0] != null) {
            groupItem.JQP_ClickOther(function () {
                groupItem.hide();
            });
            btnMagGroup.click(function (e) {
                e.stopPropagation();
                groupItem.show();
            });
        }
        $("#MIB_creategroup").click(function () {
            App.popGroupDiv();
        });

        App.lazyEvent(btnMore, "mouseenter", "mouseleave", 500, function () {
            groupList.css("left", $(btnMore).offset().left - 25).css("top", $(btnMore).offset().top + 20).show()
        }, function () { App.lazyFunction(function () { groupList.hide(); }, 500) });
        App.lazyEvent(groupList, "mouseleave", "mouseenter", 500, function () {
            groupList.hide();
        });
        var GroupSortCon = '<div class="layerBox"><div class="layerBoxTop"><div class="topCon"><strong>调整分组顺序</strong><a title="关闭" class="close" href="javascript:;"></a><div class="clear"></div></div></div><div class="layerBoxCon" style="width: 440px; height: auto;"><div class="friexpicbor">				  <div class="friexpic">					<h3>首页分组显示预览</h3>					<div class="fbTagB">					  <ul id="ul_oriderLists"><li class="current"><span onclick="MemberShow(this)">我的班级 </span></li><li>更多</li></ul>					 </div>					</div>				</div><div class="friLayBox">                <div class="frileft">                  <ul class="frititle" id="mpop_ul_frititle">                    <li>分组名</li>                  </ul>                  <div class="friList">					<ul id="group_ul_lists">载入中。。。</ul>                  </div>                </div>                <div class="friright">                  <a class="btn_notclick" href="javascript:void(0)" id="orderup"><em><img title="" class="chupdwn_icon dch_icon" src="/Content/Image/transparent.gif">上移</em></a>                  <a class="btn_notclick" href="javascript:void(0)" id="orderdown"><em><img src="/Content/Image/transparent.gif" class="chupdwn_icon uch_icon" title="">下移</em></a>               </div>                <p class="btn" id="mpop_p_btn"><a class="newabtngrn" href="javascript:void(0)" id="gosave"><em>保存</em></a><a class="btn_normal btns" href="javascript:void(0)" id="gocancel"><em>取消</em></a></p>              </div>			</div></div>';
        $("#Adjust_group_order").click(function () {
            if (App.initDialDiv("GroupSortBox", dialDiv, false, null)) {
                var groupDiv = $("#GroupSortBox");
                groupDiv.removeClass("4CancelAllLayer");
                groupDiv.find(".mid_c").html(GroupSortCon);
                $("#GroupSortBox .close").add($("#gocancel")).click(function () {
                    groupDiv.remove();
                    App.hideMash();
                    return false;
                });
                var position = App.centerInScreen(groupDiv);
                groupDiv.css("left", position.left + "px");
                groupDiv.css("top", position.top + "px");
                App.showMash(true);
                $.ajax({
                    dataType: "json",
                    url: "/Ajax/GetAllGroup/",
                    cache: false,
                    data: { fuid: 0 },
                    type: "post",
                    success: function (o) {
                        if (o.Code == "A00005") {
                            var groupCount = o.Data.length;
                            var up = $("#orderup").click(function () {
                                if (this.className != "btn_notclick") {
                                    var sel = list.find(".down").parent();
                                    var clone = sel.clone()
                                    clone.insertBefore(sel.prev()).find("a").mousedown(mouseDown);
                                    sel.remove();
                                    preview();
                                    enableBtn(clone);
                                }
                                return false;
                            });
                            var down = $("#orderdown").click(function () {
                                if (this.className != "btn_notclick") {
                                    var sel = list.find(".down").parent();
                                    var clone = sel.clone();
                                    clone.insertAfter(sel.next()).find("a").mousedown(mouseDown);
                                    sel.remove();
                                    preview();
                                    enableBtn(clone);
                                }
                                return false;
                            });
                            $("#gosave").click(function () {
                                if (this.locked)
                                    return false;
                                this.locked = true;
                                alink = this;
                                var as = list.find("a");
                                var gids = "";
                                for (var i = 0; i < as.length; i++) {
                                    gids += $(as[i]).attr("gid") + ",";
                                }
                                $.ajax({
                                    dataType: "json",
                                    url: "/Ajax/SortGroup/",
                                    cache: false,
                                    data: { gids: gids },
                                    type: "post",
                                    success: function (o) {
                                        if (o.Code == "A00004") {
                                            App.fullTip(CodeList["A00004"], 1000, window.location.href.replace("#", ""), 3);
                                        }
                                        else if (o.Code == "A00001") {
                                            App.showLoginDial();
                                        }
                                        else {
                                            App.fullTip(CodeList["A00003"], 1000, null, 1);
                                        }
                                        alink.locked = false;
                                    },
                                    error: function () {
                                        App.fullTip(CodeList["A00003"], 1000, null, 1);
                                        alink.locked = false;
                                    }
                                });
                                return false;
                            });
                            var top = $("#ul_oriderLists");
                            var list = $("#group_ul_lists");
                            var preview = function () {
                                var as = list.find("a");
                                if (as.length <= 3) {
                                    for (var i = 0; i < as.length; i++) {
                                        $(top.find("li")[2 * i + 1]).text($(as[i]).text());
                                    }
                                }
                                else {
                                    for (var i = 0; i < 3; i++) {
                                        $(top.find("li")[2 * i + 1]).text($(as[i]).text());
                                    }
                                }
                            }
                            var enableBtn = function ($elems) {
                                var index = list.find("li").index($elems);
                                if (index == 0) {
                                    up.attr("class", "btn_notclick");
                                }
                                else {
                                    up.attr("class", "btn_normal");
                                }
                                if (index == groupCount - 1) {
                                    down.attr("class", "btn_notclick");
                                }
                                else {
                                    down.attr("class", "btn_normal");
                                }
                            }
                            var mouseDown = function (e) {
                                list.find("a").attr("class", "").bind("mousemove", mouseMove);
                                $(".frititle  li").bind("mousemove", mouseMove);
                                this.className = "down";
                                enableBtn($(this).parent());
                                $(document).bind("mouseup", mouseUp);
                                if (this.style)
                                    this.style.MozUserSelect = "none";
                                return false;
                            }
                            var mouseMove = function (e) {
                                if ($(e.target).attr("tagName") == "LI") {
                                    if (list.find("li:first").prev().attr("tagName") != "DIV") {
                                        list.find("div").remove();
                                        $('<div style="cursor: move; height: 3px; background-color: rgb(51, 102, 255); overflow: hidden;"></div>').insertBefore(list.find("li:first"));
                                    }
                                }
                                else {
                                    if ($(this).parent().next().attr("tagName") != "DIV") {
                                        list.find("div").remove();
                                        $('<div style="cursor: move; height: 3px; background-color: rgb(51, 102, 255); overflow: hidden;"></div>').insertAfter($(this).parent());
                                    }
                                }

                            }
                            var mouseUp = function (e) {
                                list.find("a").unbind("mousemove", mouseMove);
                                $(".frititle li").unbind("mousemove", mouseMove);
                                $(document).unbind("mouseup", mouseUp);
                                var drag = list.find("div");
                                if (drag[0]) {
                                    var selone = list.find(".down").parent();
                                    var clone = selone.clone();
                                    selone.remove();

                                    clone.insertAfter(drag).find("a").mousedown(mouseDown);
                                    drag.remove();
                                    preview();
                                    enableBtn(list.find(".down").parent());
                                }
                                if (this.style)
                                    this.style.MozUserSelect = "";
                            }
                            list.html("");
                            if (o.Data.length > 0) {
                                for (var i = 0; i < o.Data.length; i++) {
                                    var li = $('<li><a gid="{id}" href="javascript:void(0)"  style="">{name}</a></li>'.replace(/\{name\}/g, o.Data[i].Name).replace(/\{id\}/g, o.Data[i].ID));
                                    list.append(li);
                                    li.find("a").mousedown(mouseDown);
                                    if (i < 3) {
                                        var li1 = $('<li>{name}</li><li class="MIB_line_l">|</li>'.replace(/\{name\}/g, o.Data[i].Name));
                                        li1.insertBefore(top.find("li:last"));
                                    }
                                }
                            }
                        }
                        else if (o.Code == "A00001") {
                            App.showLoginDial();
                        }
                        else {
                            App.fullTip(CodeList["A00003"], 1000, null, 1);
                        }
                    },
                    error: function () {
                        App.fullTip(CodeList["A00003"], 1000, null, 1);
                    }
                });
            }

        });
    </script>
}
<div class="MIB_blogbody">
    <div class="MIB_mblogbgr @border">
        <div class="MIB_mblogbgl">
            <div class="mainR MIB_200 MIB_txtar MIB_linkar">
                @RenderPage("~/Views/Shared/_userInfo.cshtml")
                @RenderPage("~/Views/Shared/_rightNav.cshtml")
                @RenderPage("~/Views/Shared/Wedget_HotTopic.cshtml")
                @RenderPage("~/Views/Shared/Wedget_MyFan.cshtml")
                @RenderPage("~/Views/Shared/Wedget_MyFollow.cshtml")
            </div>
            <div id="indexMainL" class="mainL MIB_600 MIB_txtal MIB_linkal">
                <div class="MIB_mbloglist">
                    <div id="MIB_newFilter" class="newFilter MIB_txtal" style="padding-top: 12px;">
                        <div class="nfTagB nfTagOn">
                            <ul id="ulClassList">
                                @{
                                              
                                    if (gg != null || Model.IsFriendShip > 0)
                                    {
                                    <li isall="1"><a href="#" onclick="MemberShow(this)">我的班级</a></li><li class="MIB_line_l">
                                        |</li>
                                    }

                                    else
                                    {
                                    <li isall="1" class="current"><span onclick="MemberShow(this)">我的班级</span></li>
                                    }

                                    if (allGroups != null && allGroups.Count > 3)
                                    {
                                        barGroups = new List<Education>();
                                        popListGroups = new List<Education>();
                                        for (int i = 0; i < allGroups.Count; i++)
                                        {
                                            if (gg != null && allGroups[i].ID == gg.ID && i >= 3)
                                            {

                                                Education tmp = barGroups[2];

                                                barGroups[2] = gg;

                                                popListGroups.Insert(0, tmp);
                                            }

                                            else
                                            {

                                                if (i < 3)
                                                {

                                                    barGroups.Add(allGroups[i]);

                                                }

                                                else
                                                {

                                                    popListGroups.Add(allGroups[i]);

                                                }

                                            }
                                        }
                                    }
                                    else if (allGroups != null && allGroups.Count <= 3)
                                    {
                                        barGroups = new List<Education>();
                                        for (int i = 0; i < allGroups.Count; i++)
                                        {
                                            barGroups.Add(allGroups[i]);
                                        }
                                    }
                                    if (barGroups != null)
                                    {
                                        for (int i = 0; i < barGroups.Count; i++)
                                        {
                                            if (gg != null && barGroups[i].ID == gg.ID)
                                            {												
@*      <li gid="@barGroups[i].SchoolClassID" class="current"><span title="@barGroups[i].SchoolClassName" >@barGroups[i].SchoolClassName
                                    </span></li>*@
                                            }
                                            else
                                            {
 
                                    <li  gid="@barGroups[i].SchoolClassID"><a title="@CommonMethod.DealSchoolName(barGroups[i])" href="@("#!" + Utils.AddQueryToUrl(Request.Url.AbsolutePath, "gid", barGroups[i].SchoolClassID.ToString()))"  onclick="MemberShow(this)">@barGroups[i].SchoolClassName</a></li>                                                           
                                    <li class="MIB_line_l">|</li>
                                            }
                                        }
                                    }
                                    
                                    <li tip="1"><a href="#" class="moreti"><span class="txt">更多</span><span class="more"></span></a>
                                    </li>
                                     
                                }
                            </ul>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="nfBox">
                            <div id="filter_key_panel" class="nfBoxSim" style="display: @(Model.IsAdvanced > 0 ? "none" : "block");">
                                <div class="left">
                                    @{
                                        var u = Request.Url.AbsolutePath;
                                        u = "#!" + u;
                                        if (Model.IsHaveMusic != 1 && Model.IsHavePic != 1 && Model.IsHaveVideo != 1 && Model.IsHaveVote != 1 && Model.IsOri != 1)
                                        {
                                        <a title="首页" href="@u" action="all" class="current" onclick="MemberShow(this)">首页</a>
                                        }
                                        else
                                        {
                                        <a title="首页" action="all" href="@u" onclick="MemberShow(this)">首页</a>
                                        }

                                        if (Model.IsHavePic == 1)
                                        {
                                        <a title="相册" onclick="photoClick(this)"  href="#"   class="current"  >相册</a>
                                       
                                        }
                                        else
                                        {
                                        <a title="相册" onclick="photoClick(this)"   href="#"  >
                                            相册</a>
                                  
                                        }
                                        if (Model.IsHaveVideo == 1)
                                        {
                                        <a title="视频" action="IsHaveVideo" href="@(Utils.AddQueryToUrl(u, "IsHaveVideo", "1"))"  class="current" onclick="MemberShow(this)">
                                            视频</a>
                                        }
                                        else
                                        {
                                        <a title="视频"  action="IsHaveVideo" href="@(Utils.AddQueryToUrl(u, "IsHaveVideo", "1"))" onclick="MemberShow(this)">
                                            视频</a>
                                        }
                                        if (Model.IsHaveMusic == 1)
                                        {
                                        <a title="音乐" action="IsHaveMusic" href="@(Utils.AddQueryToUrl(u, "IsHaveMusic", "1"))" class="current" onclick="MemberShow(this)">
                                            音乐</a>
                                        }
                                        else
                                        {
                                        <a title="音乐" action="IsHaveMusic" href="@(Utils.AddQueryToUrl(u, "IsHaveMusic", "1"))" onclick="MemberShow(this)">
                                            音乐</a>
                                        }
                                        if (Model.IsHaveVote == 1)
                                        {
                                        <a title="投票" action="IsHaveVote" href="@(Utils.AddQueryToUrl(u, "IsHaveVote", "1"))" class="current" onclick="MemberShow(this)">
                                            投票</a>
                                        }
                                        else
                                        {
                                        <a title="投票" action="IsHaveVote" href="@(Utils.AddQueryToUrl(u, "IsHaveVote", "1"))" onclick="MemberShow(this)">
                                            投票</a>
                                        }
                                        <a title="成员" action="IsHaveMember" href="@(Utils.AddQueryToUrl(u, "IsHaveMember", "1"))" onclick="MemberShow(this)">
                                            成员</a> 
                                    }
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <br />
                            <div class="MIB_mblogbox">
                                <div class="postWrap">
                                    <div class="pngBg">
                                        <div class="postOptionBg">
                                        </div>
                                        <div class="pngGuidBg">
                                        </div>
                                        <div class="pngAreaBg">
                                        </div>
                                    </div>
                                    <div class="connBg">
                                        <div id="publisher_info" class="wordNumBg">
                                            你还可以输入<span class="pipsLim">140</span>字</div>
                                        <div class="postOptionBg">
                                            <div id="publisher_faces" class="OnTit">
                                                <img title="表情" class="small_icon faceicon" src="/Content/Image/transparent.gif">
                                                <a tabindex="2" href="javascript:void(0)">表情</a>
                                            </div>
                                            <div id="publisher_video" class="OnTit">
                                                <img class="small_icon videoicon" title="视频" src="/Content/Image/transparent.gif"><a
                                                    tabindex="4" href="javascript:void(0);">视频</a>
                                            </div>
                                            <div id="publisher_music" class="OnTit">
                                                <img class="small_icon musicico" title="音乐" src="/Content/Image/transparent.gif"><a
                                                    tabindex="5" href="javascript:void(0);">音乐</a>
                                            </div>
                                            <div id="publisher_topic" class="OnTit">
                                                <img class="small_icon askico" title="话题" src="/Content/Image/transparent.gif"><a
                                                    tabindex="6" href="javascript:void(0);">话题</a>
                                            </div>
                                            <div class="OnTit" id="publisher_vote">
                                                <img src="/Content/Image/transparent.gif" class="small_icon voteicon" title="投票"><a
                                                    tabindex="7" href="javascript:void(0);">投票</a>
                                            </div>
                                        </div>
                                        <div class="postBtnBg bgColorA_No">
                                            <a title="" tabindex="8" id="publisher_submit" href="javascript:void(0);"></a>
                                        </div>
                                        <div style="display: block" class="inputarea">
                                            <label style="display: none;" for="publish_editor">
                                                微博输入框</label>
                                            <textarea title="" id="publish_editor" rows="" cols="" name="" accesskey="1" tabindex="1"
                                                style="font-family: Tahoma,宋体; border-style: solid; border-width: 0px; word-wrap: break-word;
                                                font-size: 14px; line-height: 18px; overflow-x: hidden;" range="0&0"></textarea>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="divClassMemberIndex" id="divClassMemberIndex">
                            <div class="gb_msg_wrap">
                                <p>
                                    为了方便同学和朋友们及时联系到你，请尽快填写你的 <a href="">Email邮箱</a> <a href="">手机</a> <a href="">固话</a>
                                </p>
                            </div>
                            <div class="cata_adress">
                                <div class="tag_cata" id="cc">
                                    <!--当前选择状态加样式 slected-->
                                    <a id="all" href="" class="current" onclick="searchMember(this)"  name="@Model.firstNameChar">
                                        全部</a>
                                    @for (int i = 65; i < 91; i++)
                                    {
                                         
                                        <a id="@Convert.ToChar(i)" href=""  onclick="searchMember(this)"  name="@Model.firstNameChar" >
                                            <span class="spanCharIndex">@Convert.ToChar(i)
                                            </span></a>
                                    }
                                </div>
                            </div>
                        </div>
                        <script type="text/javascript">
                            $("#filter_adv_show").click(function () {
                                $("#filter_adv_panel").fadeIn();
                                $("#filter_key_panel").hide();
                                return false;
                            });
                            $("#filter_adv_hide").click(function () {

                                $("#filter_adv_panel").fadeOut(function () { $("#filter_key_panel").show(); });
                                return false;
                            });
                            $("#filter_mkey_input").JQP_HighLineInput2({ nullCon: "搜索关注人说的话" }).keyup(function (e) {
                                if (e.which == 13) {
                                    if (this.value && this.value != "搜索关注人说的话") {
                                        var url;
                                        if (window.location.href.indexOf("#!") >= 0) {
                                            url = "#!" + window.location.href.replace(App.config.Domain, "").split('!')[1];
                                        }
                                        else {
                                            url = "#!" + window.location.href.replace(App.config.Domain, "");
                                        }
                                        url = App.RemoveQueryFromUrl(window.location.href, "page");
                                        window.location.href = App.AddQueryToUrl(url, "Key", encodeURIComponent($.trim($(this).val()))); ;
                                    }
                                }
                            });
                            var advSearch = function () {
                                var url;
                                if (window.location.href.indexOf("#!") >= 0) {
                                    url = "#!" + window.location.href.replace(App.config.Domain, "").split('!')[1];
                                }
                                else {
                                    url = "#!" + window.location.href.replace(App.config.Domain, "");
                                }
                                url = App.RemoveQueryFromUrl(window.location.href, "page");
                                url = App.AddQueryToUrl(url, "IsAdvanced", "1");
                                if (App.E("filter_ori").checked) {
                                    url = App.AddQueryToUrl(url, "IsOri", "1");
                                }
                                else {
                                    url = App.RemoveQueryFromUrl(url, "IsOri");
                                }
                                if (App.E("filter_ret").checked) {
                                    url = App.AddQueryToUrl(url, "IsRet", "1");
                                }
                                else {
                                    url = App.RemoveQueryFromUrl(url, "IsRet");
                                }
                                if (App.E("filter_text").checked) {
                                    url = App.AddQueryToUrl(url, "IsHaveLink", "1");
                                }
                                else {
                                    url = App.RemoveQueryFromUrl(url, "IsHaveLink");
                                }
                                if (App.E("filter_pic").checked) {
                                    url = App.AddQueryToUrl(url, "IsHavePic", "1");
                                }
                                else {
                                    url = App.RemoveQueryFromUrl(url, "IsHavePic");
                                }
                                if (App.E("filter_video").checked) {
                                    url = App.AddQueryToUrl(url, "IsHaveVideo", "1");
                                }
                                else {
                                    url = App.RemoveQueryFromUrl(url, "IsHaveVideo");
                                }
                                if (App.E("filter_music").checked) {
                                    url = App.AddQueryToUrl(url, "IsHaveMusic", "1");
                                }
                                else {
                                    url = App.RemoveQueryFromUrl(url, "IsHaveMusic");
                                }
                                if (App.E("filter_vote").checked) {
                                    url = App.AddQueryToUrl(url, "IsHaveVote", "1");
                                }
                                else {
                                    url = App.RemoveQueryFromUrl(url, "IsHaveVote");
                                }

                                if (App.E("filter_adv_input").value && App.E("filter_adv_input").value != "搜索关注人说的话") {
                                    url = App.AddQueryToUrl(url, "Key", encodeURIComponent($.trim(App.E("filter_adv_input").value)));
                                }
                                else {
                                    url = App.RemoveQueryFromUrl(url, "Key");
                                }
                                if (App.E("filter_adv_stime").value && App.E("filter_adv_stime").value != "选择日期") {
                                    url = App.AddQueryToUrl(url, "StartTime", App.E("filter_adv_stime").value);
                                }
                                else {
                                    url = App.RemoveQueryFromUrl(url, "StartTime");
                                }
                                if (App.E("filter_adv_etime").value && App.E("filter_adv_etime").value != "选择日期") {
                                    url = App.AddQueryToUrl(url, "EndTime", App.E("filter_adv_etime").value);
                                }
                                else {
                                    url = App.RemoveQueryFromUrl(url, "EndTime");
                                }
                                window.location.href = url;
                            }
                            $("#filter_adv_input").JQP_HighLineInput2({ nullCon: "搜索关注人说的话" }).keyup(function (e) {
                                if (e.which == 13) {
                                    advSearch();
                                }
                            });
                            $("#filter_adv_stime").JQP_HighLineInput2({ nullCon: "选择日期" }).JQP_DatePicker({ curDate: new Date() });
                            $("#filter_adv_etime").JQP_DatePicker({ curDate: new Date() });

                            $("#filter_mkey_btn").click(function () {
                                if ($("#filter_mkey_input").val() != "搜索关注人说的话") {
                                    var url;
                                    if (window.location.href.indexOf("#!") >= 0) {
                                        url = "#!" + window.location.href.replace(App.config.Domain, "").split('!')[1];
                                    }
                                    else {
                                        url = "#!" + window.location.href.replace(App.config.Domain, "");
                                    }
                                    url = App.RemoveQueryFromUrl(window.location.href, "page");
                                    window.location.href = App.AddQueryToUrl(url, "Key", encodeURIComponent($.trim($("#filter_mkey_input").val())));
                                }
                                return false;
                            });
                            $("#filter_adv_btn").click(function () {
                                advSearch();
                                return false;
                            });
                        </script>
                        <div style="display:@(string.IsNullOrEmpty(Model.Key) && Model.IsAdvanced == 0 ? "none" : "block");" class="nfresult MIB_linedot2">
                            <div class="lf">
                                共搜索到<span class="spetxt">@Model.RecordCount</span>条微博</div>
                            <div class="rt">
                                <a href="@(g != null ? Request.Url.AbsolutePath + "?gid=" + g.ID : Request.Url.AbsolutePath)">
                                    <em>&lt;&lt;</em>返回@(g != null ? g.Name : "首页")</a></div>
                        </div>
                    </div>
                    <div id="loadMB" class="feed_lding MIB_txtbl">
                        <em class="icon_lding"></em>正在加载，请稍候...</div>
                    <div id="loadError" style="display: none;" class="feed_lding MIB_txtbl">
                        <em class="icon_lding"></em>加载失败，<a href="javascript:ajaxGetMiniBlog(true);">请重试</a>...</div>
                    <div id="loadNoresult" style="display: none;" class="feed_lding MIB_txtbl">
                        <em class="icon_lding"></em>此人很懒...</div>
                </div>
            </div>
        </div>
    </div>
</div>
